
// 文章模块
// 注册
// 登陆
// 个人信息

const Router = require('koa-router');
const articleList = require('../models/article');

// 设置前缀为 /user
const router = new Router({ prefix: '/article' });

articleList.forEach(param => {
  const { method, requestUrl, callback } = param;
  router[method](requestUrl, ctx => callback(ctx))
})

module.exports = router;